package com.sky.service;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    void addDish(DishDTO dishDTO);

    //分页查询
    PageResult page(DishPageQueryDTO pageQueryDTO);

    void deleteByIds(List<Long> ids);

    DishVO getInfo(Long id);

    void update(DishDTO dishDTO);

    void startOrStop(Integer status, Long id);

    List<Dish> list(Long categoryId, String name);

    List<DishVO> selectByCategoryId(Long categoryId);
}
